<?php

class Home extends MY_Controller {
    var $data = null;
    var $module = null;
    var $controller = null;
    var $url = null;
    var $table = "";
    var $submodule = null;

    /* @ Set Constructor  */

    public function __construct() {
        parent::__construct();
        $this->data['module'] = $this->module = $this->uri->segment(1);
        $this->data['URLPATH_IMAGES'] = URLPATH_MOD . 'modules/' . $this->module . "/asset/images/";
        $this->data['URLPATH_JS'] = URLPATH_MOD . 'modules/' . $this->module . "/asset/js/";
        $this->data['URLPATH_CSS'] = URLPATH_MOD . 'modules/' . $this->module . "/asset/css/";
        $this->data['sub_module'] = $this->submodule = $this->router->class;
        // load model
        $this->load->model($this->submodule.'_model','monitor');
        $this->plugColorbox(); // เรียกใช้ colorbox 
        
        
        // user test 
        $this->data['userdata']= array('username'=>'jnthongluk','em_code'=>'00202929');
        
        //set CSS
    
        // set JSS
        
    }

    /* @ Load Default */
    public function index() {
        $this->data['course'] = convertTIS620( $this->monitor->wf_course(null));
        $this->data['content'] = $this->load->view("index_view",$this->data,true);
        $this->load->view("default", $this->data);     
    }
    
    public function add(){
    }
    public function update(){}
    
    public function delete(){}

}

?>